#ifndef _receive_h
#define _receive_h

#include <inttypes.h>

/*
GND  Brown  GND
VCC  Red  3V3
CE Orange 8 (30)
CSN Yellow 7 (31)
SCK	Green	13 (52)
MOSI	Blue 11  (51)
MISO  Violet 12 (50)
IRQ	Gray 2(b)
*/

struct temp_msg_struct {
  //byte start_byte; //#01 constant value 0x7b
  byte num_sonde; //#01 constant value 0x7b
  int temp;
  byte parity;    //#172 Checksum / parity
};


struct temp_msg_struct_ss {
  //byte start_byte;	
  byte relay1;
  byte relay2;
  byte etat_alarme;	
  byte parity;		//#172 Checksum / parity
};


void receive_init();
struct temp_msg_struct  get_temp_mirf();
int send_rf_ss(byte relai1, byte relai2);



#endif
